package com.joysuch.wwyt.attendant.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.workflow.api.bean.PersonTrajectoryResp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Time;
import java.util.Date;
import java.util.List;

/**
 * @Description //TODO
 * @Date 2023/2/15 16:44
 * @Author Leong
 **/
@Data
public class AttendantRecordTrackVo {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "跟班计划ID")
    private Long attendantPlanId;

    @ApiModelProperty(value = "跟班时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date attendantTime;

    @ApiModelProperty(value = "跟班开始时间")
    private Time startTime;

    @ApiModelProperty(value = "跟班结束时间")
    private Time endTime;

    @ApiModelProperty(value = "跟班人员")
    private Long userId;

    @ApiModelProperty(value = "跟班人名称")
    private String userName;

    @ApiModelProperty(value = "岗位名称")
    private String jobName;

    @ApiModelProperty(value = "跟班区域")
    private Long areaId;

    @ApiModelProperty(value = "区域名称")
    private String areaName;

    @ApiModelProperty(value = "停留时长")
    private String duration;

    @ApiModelProperty(value = "签到时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date signInTime;

    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date finishTime;

    @ApiModelProperty(value = "坐标集")
    private String coordinates;

    private List<PersonTrajectoryResp> trajectoryRespList;

    private List<AttendantTimeVo> times;

    @ApiModelProperty(value = "进出时间")
    private String accessTime;

    @ApiModelProperty(value = "是否同步开发平台 0未同步 1已同步")
    private Integer isSync;
}
